package com.ithema.method1;

import java.util.Scanner;

public class test1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入：");
        String s = sc.nextLine();
        int bigCount=0;
        int smallCount=0;
        int numCount=0;
        char[] chars = s.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            char a = chars[i];
            if(a>='a'&&a<='z'){
                smallCount++;
            }else if(a>='A'&&a<='Z'){
                bigCount++;
            }else if(a>='0'&&a<'9'){
                numCount++;
            }
        }
        System.out.println("大写字母字符："+bigCount);
        System.out.println("小写字母字符："+smallCount);
        System.out.println("数字字符；"+numCount);
    }
}
